cmake_minimum_required(VERSION 3.10)
project(cudaRayTracing)

set(CMAKE_CXX_STANDARD 17)
set(CUDA_SEPARABLE_COMPILATION ON)


find_package(CUDA REQUIRED)
include_directories(${CUDA_INCLUDE_DIRS})

cuda_add_executable(
    cudaRayTracing 
    Bounds3.hpp BVH.cpp BVH.hpp
    device/BVH.cu device/dev_utils.hpp device/Renderer.cu  device/Scene.cu device/Vector_dev.hpp
    host_utils.hpp
    Intersection.hpp 
    Light.hpp
    main.cpp Material.hpp
    OBJ_Loader.hpp Object.hpp
    Ray.hpp Renderer.hpp 
    Scene.hpp 
    Triangle.cpp  Triangle.hpp 
    UnifiedMemManaged.hpp
)
